package components;

import uml.Visitable;
import uml.Visitor;

public class Field implements Visitable {
	private String accessQualifier;
	private String _static;
	private String _final;
	private String type;	
	private String name;
	
	public Field(){}
	
	public Field(String name){
		this.name = name;
	}
	
	public String getStatic() {
		return _static;
	}

	public void setStatic(String _static) {
		this._static = _static;
	}

	public String getFinal() {
		return _final;
	}

	public void setFinal(String _final) {
		this._final = _final;
	}
	
	public String getAccessQualifier() {
		return accessQualifier;
	}
	
	public void setAccessQualifier(String accessQualifier) {
		this.accessQualifier = accessQualifier;
	}
	
	public String getType() {
		return type;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String toString(){
		return accessQualifier + " " + _static + " " + _final + " " + type + " " + name;
	}

	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);
	}
	
}
